Fix initialization of NM plugin