fix compute_alphas