Fixed simple logging issue