Fixing an issue when dragged.