Remove initial window flickering