bug in window size