Fixed turning on instead of off