[core] set isInit to true when the object was initialized