Fixing cTemplate