Fixing the split logic and betting