layouts template-url fix