Fixes recursion error when using MaxDepth strategy