Fixes bug on android orientation