adjusted window position to fix error