Fixed bugs in bandit actions