Fixed migration dependencies

Migrate doesn't fail anymore.