fix: object attribute should be the same as constructor argument