Solved bug that happened when flash or twinkle were on during the screen rotation