fixed bug in calculate_EGb() responsible for loss rate estimation discrepancy