My functions and delegates break for blueprints after compile

Every time I compile c++ code after changing my character class, no matter how minuscule the change is, its blueprint-exposed functions and delegates break. Restarting the engine makes them work again. How do I fix this?

Edit: And refreshing them does nothing. Only restarting the engine makes them work again. But if I compile again I’ll have to restart the engine again