Minor bugfix in the case of no path existing