var/std mixup bug