fixes an issue the affects the window bounds calculation