Fixing template directory