fix little bug in upload_loc_files