Fixing bug with grep.