Fix missing argument in rename_all_metadata function