fix when starting window position different from top