Fix NullPointer exception during rotation