Fix host_ptr trouble on buffer