Fix compute_vw_distance generic