Fix problems on the stat page that appear for larger repositories.