fixing inputs for select