bug fix in bets controller