Fixed logic in tangent scores.