Fix bug in setting sync_extra_temp_file