Fix dh_params index