fix issue with stats streaming to client