fix a bug about grep function