fix template directory reference