Fix the size of ByteBuffer
Fix Atmosphere/atmosphere#1720