Fix issue with window position