small fix in get_windows()