Fix D cursor movement