Fixed calculation bug that causes server to crash.