Improved formatting
Fixed a crash when the screen was pressed before the surface was created.