fixed logging statements