fill missing parent with 0