Fix template error

Ciao Alessandro

  Fix for a misnamed variable, probably due to C&P.

  Regards,
      Javier