3 things,
  1. no configuration fuses.. make sure you set the right osc mode
  2. disable all multiplexed analog converter, comparator, voltage reference or else fancy stuff
  3. with 18Fs, you want to use LAT instead of PORT to avoid R-M-W behaviour. The best solution is often write to the whole port in one shot instead of using multiple High/Low lines.