Algo fix for path-around-bad-children. Probably needs more work along the same line.