Fix a bug in causal consistency implementation.