Small bugfix in the logger