Fix buffer source error