Fixed php notices on stats page