fixed error in pmpc example