Corrected some bad math