window position bug fixed