CRAFTERCMS-229: Fixed. Changed to AtomicInteger.