fix template urls