Fixes repopulation for array named inputs.