Fix some problems with readOnly widgets