fix last item not detaching