fix: config OnLoaded & template FuncMap