minor fix to new atomic operation logic