fixed recursion error a<>b