fixed 2 bugs in pp