[bugfix] member vars in constructor