Fix DBMigrate bug.