undefined stats fix