How to stop changes ?

Have you considered that you might be part of the problem, along with the code?

State the problem clearly.
Post the code.
Post your observations about the behavior of the code.

Then listen and apply