Fixed the Nullpointer Exception i got when accessing the Statistics page