fixed error with the folder name handling