small bugfix on logging