Fixed removeFromBufferBoxes bug.