Workaround the issue of filetype lost after auto jump.