Fix wrong logging.