Fix bug when defining primitive projections mixing defined and abstracts fields.