Try it with INCLUDE "ICDDEFS4.BAS" in the top section of your code to reserve space for ICD vars.

ICDDEFS4.BAS is for the - 18F252/258/452/458