Fixed preferences not updating