fix templates/public paths