getAction() in Agent fixed