Fixed Wrong Positioning of Window