fixes lottery