Small template bug fixed