fixed global bug with agents list