Fix windows memory usage.