fixed issue with grep finding bad values