fix typo in Buffer constructor