Bugfix in mod tpl.