Fixes the crash when rotating without results