If you add or modify any template in the tmplates folder, you also need to run mage generate to get the Go code in synch.
mage generate