fix exit case