Fix read only mode