Fixed preferences storage.