fix bugs in fail forms