fixed fail on processing headers with substring 'type' in their names