fixed lottery incorrectly loging things