fix sync file error.