Fixed lack of persistance in custom preference