fix some sync errors