Fix sequence of registering templates

Signed-off-by: Byron Ruth <b@devel.io>