Fix buffer allocation