fixed bad return value in gen_event template

ooops