Fix initialization check