fixed `grep: invalid max count`