path searches were pruned too early, fixes #1117