fix for turning back on after turning off