Fix template directory