bugfixes lottery