Fix renderTemplate call when using different view and template IDs