fix error for logisticCostlayer