read shared preference correctly