Fixed template loading.