fix bug unsetting var

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>