Fixed a bug with betting