fix grep usage bug