fixes in get_incoming_rate