fix bug in join packet