Fixed bug where buffer.off did not match buffer.on.