Fix some cases of not being able to find any path