bug fix of analyze.