Fix error on midb migrate and start TDD