Fix initialization flag test