Fixed migrations replication issue