introducing fix by @rickyk586 on issue #69 for percentages