Fixed entityManager inclusion