Fix buffered read/write methods