fix leave session