Bug fix on clear alerts on forms