Finnaly got replication working right