fix setReadonly