[sgen] SGEN_UPDATE_REFERENCE was used where it shouldn't be.