fix gas_used calc