fix elementCost