Fix a few minor bugs in stats clients.