fix egrep bug