Fixes Bug which caused when rotating the screen. Fixes #34