Endnote plugin breaks Reference list with custom styles

I’ve recently installed endnote plugin for word and I noticed that my table contents list (that I generated using references - > table of contents -> custom table of contents) has been reformated to a single line stating the following:

{ TOC \h \z \t “Kop 1 stage;1;Subkop 1 stage;3;Subsubkop stage;4;Kop 1 met nummering;2” }

When I export the document to pdf however the tables show as previously shown in full format.

Is there a way to fix this as to when I open the word document on a laptop it works fine so the plugin broke my word 2016 professional.