fixed the bug of not finding the optimal recommendation for g7 r7 vs ((A))