fix syntax error of event delegate