fix xfile opening