Fixed sync where overwrite files

Fixed sync where overwrite files