fixing a few bugs related to logging typos