fix input creation error for selects