this was responsible for bugs in the demo plugin where the cmap is created in a library and used in another one