Fix: template pathname is not correct