:bug: fixed issue with the custom templates where the charts would still use the old connection instead of the newly created one