fixed buffers bug