I am trying to control ac fan using mosfet driven by a pwm signal. I have ended upon a circuit like the one attached with this. Is there any problem with this circuit regarding leakage of photo transistor during off time? Do i have an alternative? Please help.... Thanks.