fix agent type selection, RT#28804