[3.8.6] Fix missing argument in rename_all_metadata function