whoops, wasn't properly handling uninitialized flags.