fix bug in changing work events in process logging