fix issue with focused window