Are you trying to control two outputs with two different dimmer settings?

In your code, you seem to be having the same setting for both delays.