fix some bugs in tarifs