Fix stats request/reply bugs