Another fix to synch. Seems like it works, but not guaranteed to find
common start point (due to silly code).