Fix some regressions about read only and/or hidden preferences