Fixed the pp bug in simple heuristic