fixing event template
fixing swig templating