Corrected issue with preferences initialization