unbind buffers properly