fixing variable mixup in log warning