Fixed the template function

Signed-off-by: Bert Hajee <hajee@moretIA.com>