Child blueprint gets parameters reset when changing code in parent

This is the right way to fix this issue. But in my case I also had to click revert button near the variables that lost data from parent