fixed bug calling non-existant logger