fixes lost focus on new window