Fix buffer size