Fixed script to handle clearing the percentages of all outputs