fix: fixed read-only mode that was not correctly supported before this.