Fixed incorrect buffer size when using default block size