template event fix