One more randomagent bug fixed