change \ by / in templates