fix references.