Set the port to HIGH state prior every serial command. Even better before TRIS command.

That is a good practice, to set the outputs before TRIS commands,so you have no glitches at the outputs.

Ioannis