fix child length bug