fix remote branch grep