fixed #depthLastChild and #depthFirstChild