Fixed bug with counter.