Fix max nesting.