Fix for max recursion.