Fix fast_dist_diag() for when only one element is called for