Stupid typos and a fix for logging