fixes removing shared preferences
Merge pull request #1352 from ry4n1m3/fix-sharedprefs-949

Fix removing shared preferences.