How a midcap fund managed to limit losses in 2020