Fix focusedWindow call