Fix bug in replicator.
Fixed bugs in store.