Fixed a bug with Preferences that would cause the new values not to be updated in Android.