Fatal error correction

fixed the error of being able to go off the screen a little bit