Fixed the moving bug

After being draged, the item no long moves when you click on the empty
place.