fixed bug reference to windows instead of window