Fixed bug where joinGroup was called twice when joining from history.