Fix cursor issue after move.