fixed more bad return values in gen_event