fixes template directory