Fix problems with search for maxNetworkLeakRates during pruning

fixes #176