fix cross-machine slave NPE issue.