Fix bug preventing moves by dragging