Fix bug in transmission_files_sync