bugfix in logging.error