Fixed #29. Error with counter and a new redis database