fix issue of parent ctor not getting called