Fix buffer binding on ubuntu