fixed segfault in ppm;possible segfault in ppp