In MPLAB, go to Configure>> Settings >>Program Loading and check Clear EE data upon loading a program