Fixed infinite recursion bug.