fixed bug in PP model