fix bug about nodename mismatching