Fixing bug where new form fields included the value of the last input instead of being empty