fix prefernece convertion from string

prefrernce screen saves all as string