bugfix on entityManager parameter being ignored