allow setting read-only property in construct