Fix bug in sending stat requests