Remove debug code, fix typo