fixed bug in predTanb, should solve non-covergence problems for certain points.