fix the mnesia replication