fix to get_parent