generate_numbers fix