Bug fixes for MultiDim plugin