fixed codeblock in 2.x event usage