bug fix in failed