Fixing bug with draggable library items