fix crash on stats ui