Logger bugfix