fixing a bug for joining new rooms and saving