Fix nil var.
Add trigger on user creation : set preferences.