fix bug creation agents