fixed bug that leads to empty spec ref ids in reactions