settings ref fix