bugfix for percentage