fixed a bug in the people counter