Revert "Making the copy buffer infinity"

This reverts commit 1516fe696c7b4e5c67bae5fcd85192026bac6a7a.