Fixing "random agent"