fix bug in subevent parser