Fixed small bug when dragging tasks