fixed bug with logging.error