fix typo and a stray return