Fixed a typo and removed a log call.