fix typo and remove debug logs