Fixed a sign (negative or positive) in ii calculation.