fixed a bug in MMSB