window bugfix