fix lottery num  bugs