Fix a bug related with serializeForm