Fixed black window bug