fixed stats page bugs at long last