fixed a bug in the bufferviews