bug on legend fixed (msdplot)