Update first and first_beta_a