fix saving data while saving on heroku on no internet