fix typo and add test to cover