fix leave