Crash when resolutionX greater than resolutionY