fix ctor