Fix small bug which concern to event logging.