Small fixes for the LotteryGraph GUI (that also need a new query)