Fixing template url errors