fix readOnly model