change cisco & ruijie add terminal no length when close.