Finally, after testing a lot, I found that by changing Deploy to Heroku Git and then changing Settings. Automatically Deploy move to Github Connected, preserving the new values for env var you modified.