A segfault detected by Robert Kyrali (Old Coder).
I'll also apply other fixes to avoid these kinds of issues.
Mainly there were still some old stats code left behind, now it should be clean