Fix readonly mode.