[ATM][Modes] Fix crash on screen rotate.