fix typo buffer->reader