Typo and unused code