Update bufferManager.cpp