Fixed critical bug in InputField.