fix missing leave