fixed endless recursion.