Fixed a problem with missing variable in templating.