Fixed bug while doing lottery without space in the inventory.