Fixed a typo and log output for easy debugging