You might be able to turn MCLR off but we do not know the chip you are using.
Post your configs, complete code, and schematic so the folks here will be able to help you.