Fix for getAndIncrement