fix click and move bug