fix bug of window briefly showing