fix double grep