Fixed some bugs in analyze.cpp.