Fix some deep recursion.