Fix sync error introduced in beta29

Fix a serious issue which broke sync in #560