could the compile line have something to do with it?
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\PRO\9.63\bin\picc18.exe" -oblah.cof -mblah.map --summary=default,-psect,-class,+mem,-hex --output=default,-inhx032 main.p1 --chip=18LF13K50 -P --runtime=default,+clear,+init,-keep,-download,+stackwarn,-config,+clib,-plib --opt=default,-asm,-speed,+space,-9 --warn=0 -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"