Keep in mind that Pickit is not for production as Microchip states and as I have confirmed.

From times to times I had chips that were not programmed 100% correctly.

With other programmers like ICD3 or Elnec Pikprog+ never had a problem of corrupt code.

Ioannis