repair the agent plat