FIX: Crash on rotation in some cases.