fix exit()