fix bug in synchronize getfile