fix crash without flashlight