Fix cursor control
Correct end of screen memory