fixed issue with wrong results when no path