Fixed a join event bug