fix events printout