set entity_id for root to NULL