reverted change in linux, now Widows looks at the previous value of var aftera decrement.