Fix template bug that refernces default