Fix inf exception
Fix incorrect overfolw or underflow conditions