Fix entity_manager bug with multiple properties