fix migation error