fix a bug in pp2