fix bug on agents placement