Refreshing entity before removing