template directory fix.