Fix join room function