fix bug in sync_file