Fixed retrieving values from sharedPref