Fixed window activation bug.