Fix form check bug