Now using \protect in front of \vec in nomenclature to avoid errors.