fixed user join/leave bug