Bug fix. replication is working now.