fixed obvious scenario of no possible path