fix lower_mode_b: phi inputs may be bad