fix parent_id field