for bug #66, clear the sps and pps.