Fix some alt+tab bugs