Updates for reference refreshing
Fixed problem when external event id is out of range
Update
Updated code
Temporary windup fix