Fixed minor bugs with total cost, segmented gas types.