fix div by zero and output number of clients mixed in last frame