fix bug and add event category