fixing document template