Fixed missing parent_id error