Some fixes for the stats page.