fix typo end registration