Betting bug fix