its in the hardware configuration registers (fuse settings)

WPFP = PAGE_0
WPCFG = OFF
WPDIS = OFF
WPEND = PAGE_WPFP
shown here with default pbp values (no code protection )
it does help if you post you whole code (in code tags) not just snippets, and include what version of pbp used