fix bug in use event logging