Fixed randomAgent getactions bug