Reinstalling or restoring the agent