Fixing preference update