Important fixes and clean up to SlidingWindowWinRates