Fixed bug in T4 template