Fix mathematical error.