fixed flashlight auto-on

fixed some things to do with flashlight auto-on