Fixed wrong function passed to template

Signed-off-by: Mansour Behabadi <mansour@oxplot.com>