fix bug for grep log without any match