Revert "bug fix"

This reverts commit 35264d7cd56800ef16e751d6d8ac2ce70e3d4771.
fix len bug