Fixing buffer allocation size

Buffers were not correct size with added flags