* fix exception when `win` is `None`