Small fix for window switching.