fix in tanb limit caculation