complete program terminate bug