Fixed bug if no path.