fixed trigger leave.