Upgrade templates option messes up existing templates

I fixed it for you!

Upgrading can cause the overlap issue documented here (includes fix), for anyone else encountering the same.