Pretty sure I fixed a calculation problem