fixes error with grep