Fixed bug in joinEvent