STATISTIK-410 Fixat "undefined variable" bugg