Fix all templates compilation