fixed hv_delete on clang