Fix class types of input form.