fix a bug about search history parser