Object Properties are not returned back to normal after game stopped

Hello,

I have a weird problem. I am running the game in editor and during gameplay properties of some actor are changed by code. For example, I move actors 50000 units in -X direction, change some of their materials etc. When I stop the game, these actors don’t come back to their original locations when game started and their materials does not change back to original materials either. How can I fix this problem? I never had this problem on my previous projects. I am using 4.25.

Thanks.