corrected a bug in join event