fix exit call