Fixed a floating point exception in Stat