Flag is sometimes uninitialized