fixed some ref ids