fixed errors when a form type does not exist