Corrected bug when deleting entity