Fixed grep bug