fix timing between off and on