Fixed #609 - remove setters when readOnly