Fixes orientation change bugginess