fixed TotalCost on generate and authorize quote