Fixed pId issue