fix bug in window