division checking fix when getting percentages