Revert "fix buffer size limit"

This reverts commit 6ea0af60ecf4e4587eaa13b884391be01b4c2a12.