fixing template urls