Bug in event generator fixed