modify bugs in xf_msh_wrt

modify bugs in xf_msh_wrt