Resolve lotto problems

Resolve lotto problems