fixed the leave