Fix missing $win variable definition