Fixed EntityManager type.