Your toggle command is not doing what you think it is.

Code:
toggle PORTA.0[j]
That will read the PIN specified by the [j] offset from PORTA.0.
Then toggle the resulting PIN, either 0 or 1. (0 = PORTB.0, 1 = PORTB.1)

You could use this instead ...
Code:
PORTA.0(j) = !PORTA.0(j)
But you'll need to set the TRIS/PORT bits to OUTPUT/LOW first.