Fix leave room functionality