Template (t) parameter isn't defined correctly!