fix agrep error