Fix migration dependencies