Fixed bug with betting