fix 404 issue when printing ressource in template