fix a typo and add some logging