fixed bug with form recognition