small change: lastBetId