fix load agent and policy