Fixed a bug in the variable orm_entity_manager