Fixed bugs, coded for Gen2jets