fix the wrong method name, "set_file_preferences" to "set_file_prefs"