Fixed the logic in writing new progress value to shared preferences