fixe MDS strange behavior on open multiple times a window
- update the ref library

Signed-off-by: Claudio Bisegni <Claudio.Bisegni@lnf.infn.it>