Fix the migrate system