Use of atomic complete flag
Fix for segfault when generating integers

- Merge error left some code in where it shouldn't have been