Fix problem where synching would not detect local changes correctly.