fix bug with dragging items to the top