Losing variables after compiling again and loses assignments

I have an Character c++ file and made an blueprint class based on it.
Most times it can find my variables and I just can work but after some compiles because I make new c++ files or make some changes in other files it cannot find the properties anymore. Need to restart the editor to fix it but also loses the values changed in the blueprint.