fixing NPE for convertBet