[bugfix]  is called twice when an object is instantiated from a grandchild class of CoreObject
[refactor] remove unnecessary code, use proper variable name