fix issues with percentages