fix sharedpreferences