fix some bugs with renamed column rate-> carrier_rate