fixing a % error