fixed transition from on to flash