Fixed migrate process.