prevent cursor from moving (issue #2)