fixed a critical bug in the Multiset package