Fixed bug in logging.