fix state ctor