path_name bug fixed