fixing a sync problem