Set your "PORT" status to the intended state before you set the "TRIS" to output so it sets the output to a non fire state and then implements it.