fixes bug 1095186
fixes win/window bug