fixed bug with generate_inputs.py