I like to set the IOs right after the configuration registers (fuses).
That way you are sure what the chip is doing while everything else is settling in.
Give it a try...