refine txpath.c

refine txpath.c