fixed a loop error.
bug in searchsinglekeyword fixed.
reorganize common.h
reorganize common.h