Fix update preferences on click