fix a bug on FormType