Fixed a bug with screen scrolling