Fix client side template mapping

needs a `var` :angel: