fixed a few problems with percentages.