"The simple fix is to setup all output port latches & TRIS registers in
the initialization/startup section of your code."

Bruce - are you saying to use TRIS to set the pins as outputs when the program starts?

Eric