Actually fix math bug