Fix to bug with percentages