change: should raise an error if "of" attribute is not defined.