restore update count if update failed, otherwise further update need to restart provider