Fixed preference creation.