fix transimission rate calculation