fix exit program call