fix for parent extraction