event generation fix