fix broken polarization correction (fminbnd for 3.8 changed)