fix exit warning