bugfix for tariff graphs