EntityManager injection fix