correct template variable usage (deprecation correction)