change file causes window position randomized issue