Detect event sub name correctly