small fix for readOnly mode