Fixed arithmetic error in statpack