return 500 instead of 404 if local storage is corrupted