Fix broken stats pages (bug 900174)