Fixed a missing template var conversion on view templates