Fixing the grid reordering when the items are dropped after the last item