Are you erasing the chip before re-programming?