Small bug fix in cfg agent

Change-Id: Ib692660a215c677a6fe0c476cc5141f2386c540c