update xtemplate.Fixes #477