Fixed a few rough corners in agentctrl