Insert into bets bug fixed

bug on bet id when bet fails