fix ctor error