fixed bug with joining random