fixed bug for percents