little bugfix in window