migrate and fix typo