Fix word document linked to wrong library

By error, I linked my word document to a wrong endnote data file (a compressed .enlx library instead of a normal one).
Since then, I get the “EndNote Error” warning message when I try to insert an Endnote citation, even when I have the correct library open in my EndNode programme.
How can I change the endnode data file that word is connected to?
Many thanks.