Fix initialization flags so that isInited returns correct result.