temporary patch to fix diagnoses element errors