fixes issue with grep error