Fix user preferences not saving