Fixed Math Errors