Template error

Missed a undef param check