fix bugs in tuan4j-core and tuan4j-distributed