[BUGFIX] don't try to set private attributes of inherited class