Fix 502s from missing template variables