Fix percentage calculation.