bug fix. window size