Fixes bad variable name in template loader