fix nesting level