Fix compile problem of nesting depth