fixed bug with the gen numbers