(bod)fixed a bug in the way buffers are initialized