Fix crash when rotating on chat tab