Fix small bug in second score calculation