Fixed mistake with turn off