fixed issue about non-cloned Buffer