fixed ghost window bug