fixes in agents