Fixed issue that left LED on when changing mode