fixing document category templates