Fixed updateReferences()

How could this go undetected for such a long time? :-)