fixed a bug in analyzer