Fix number of input elements