Remove unnecessary method and fix typo