Fixed error when no path