Fixed EntityManager deleition