fixed do_cond_form