fixed warnings in EntityManager