fix datanode join bug.