fixed the settings using persistence