fix UpdateReferences
fix UpdateReferences