Fix readOnly connections