Fix depth system

When params or body exist, increment depth at child node.