a bug in setLimitCounting is solved