Fix migration order.