Fixed bug when Deleting an entity, it nulls all the references