Fix last commit for hv-alternating algorithm