Altered the way of setting the preferences, fixed issue with migrations