Fixed calculation error.