Fix screen size/ratio to prevent crash.