update clone to correctly copy a Buffer