Fixed a stupid bug in the template updater