Fix bug in method: refine_folder_names