Fix 'templateSource' helper