Fix stupid cursor behaviour