win: fix immediate re-assignment