generate input page fix