Fixes a typo, adds a logging statement