Fixing the eventgen