may bug fix

still exist some bugs, may be in fdg_diag